﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:gd="clr-namespace:WickedFlame.GenDock">
    
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/VecDraw.GenDock;component/Resources/Brushes.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
    <!--ButtonAnchorButton-->
    <Style TargetType="{x:Type gd:ButtonAnchorButton}">
        <Setter Property="Margin" Value="2,4,2,4"/>
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type gd:ButtonAnchorButton}">
                    <Border BorderBrush="Transparent" BorderThickness="1,1,1,1" CornerRadius="2" Name="btnBorder">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                            </Grid.RowDefinitions>

                            <Viewbox Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="4">
                                <ContentPresenter x:Name="Icon"
													VerticalAlignment="Center"
													ContentSource="Icon"
                                                    HorizontalAlignment="Center"
													SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                            </Viewbox>

                        </Grid>
                    </Border>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver"
								 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="#FF565656" TargetName="btnBorder" />
                        </Trigger>
                        <Trigger Property="IsPressed"
								 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="#FF565656" TargetName="btnBorder" />
                        </Trigger>
                        <Trigger Property="IsSelected"
								 Value="true">
                            <Setter Property="BorderBrush"
                                    Value="#FF565656" TargetName="btnBorder" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                    
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        
    </Style>
    
</ResourceDictionary>